<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<title>{$pageTitle}</title>
	
	<!-- head -->
	{include file="head.tpl"}
	
</head>

<body>

<!-- body_js -->
{include file="body_js.tpl"}

	<div id="wrap">
		
		<!-- header -->
		{include file="header.tpl"}
		
		<div id="body">
			
			<div id="body_left">
			
				<!-- breadcrumbs -->
				{include file="breadcrumbs.tpl"}
			
				<h1> Admin </h1>
				<p> Categories administration page. </p>
				
				{if $deleted eq "yes"}
					<div id="notice" class="notice">
						<p>The category has been deleted.</p>
					</div>
				{/if}
				
				<p><strong>Categories list</strong> - <a href="{$smarty.const.BASE_URL}admin-new-category.php" class="add"><span>Add new</span></a></p>
				<ul class="asterix">
					{section name=category loop=$adminCategories}
						<li>
							{$adminCategories[category].name} - 
							<a href="{$smarty.const.BASE_URL}admin-edit-category.php?id={$adminCategories[category].id}"><span>Edit</span></a> | 
							<a href="javascript:void(0);" onclick="javascript:confirmurl('{$smarty.const.BASE_URL}admin.php?delete={$adminCategories[category].id}','Are you sure you want to delete this category? The poems from this category will not show anymore when browsing poems.');"><span>Delete</span></a>
						</li>
					{/section}
				</ul>
				
				<p><strong>All members e-mails for newsletter</strong>
				<br />
				<textarea rows="10" cols="70">{$all_emails}</textarea></p>
				
			</div>
			<div id="body_right">
			  <!-- body_right -->
				{include file="body_right.tpl"}
			</div>
			<div class="clearer"></div>
		</div>
	</div>
	<!-- footer -->
	{include file="footer.tpl"}
</body>
</html>
